import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router);

export const constantRouterMap = [
    {
        path: '',
        redirect: '/signIn',
    },
    {
        path: '/signIn',
        name: 'signIn',
        component: () => import("@/views/signIn"),
        meta: {
            title: '签到'
        }
    },
    {
        path: '/signIn/detail/:id',
        name: 'signInDetail',
        component: () => import("@/views/signInDetail"),
        meta: {
            title: '签到详情'
        }
    }
];


export default new Router({
    //mode: 'history',
    scrollBehavior: () => ({y: 0}),
    routes: constantRouterMap
})
